﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Showroom.BLL;

namespace ShowroomMobile
{
    public partial class AdminSite : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            View_Users user = View_Users.GetCurrentUser();
            lblUser.Text = user != null ? "Hello " + user.s_FullName  : "";
        }

        protected void lnkLogout_OnClick(object sender, EventArgs e)
        {
            View_Users.SetCurrentUser(null);
            Response.Redirect("LoginAdmin.aspx");
        }

        public void SetTitlePage(string title)
        {
            lblTitleAdmin.Text = title;
        }
    }
}